home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer (Italian) 30
/
PC Gamer IT CD 30 1-2.iso
/
MOTS
/
GAMEDATA
/
EPISODE
/
JKM_PCG.GOO
/
cog_s1l2_goals.cog
< prev
next >
Wrap
Text File
|
1998-02-25
|
829b
|
43 lines
# Jedi Knight Cog Script
#
# S1L2_Goals.COG
#
# Endlevel cog for level S1L2
#
# [KS]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved
# ========================================================================================
symbols
sector goal0 # gain entry to hut
sector goal3 # Go to core
message entered
int done0=0 local
int done3=0 local
end
# ========================================================================================
code
entered:
if((!done0) && (GetSenderRef() == goal0))
{
SendMessageEx(GetMasterCOG(), user0, 0, 0, 0, 0);
done0 = 1;
Return;
}
if((!done3) && (GetSenderRef() == goal3))
{
SendMessageEx(GetMasterCOG(), user0, 3, 0, 0, 0);
done3 = 1;
Return;
}
Return;
end